package cn.z2huo.demo.mapper.role;

import cn.z2huo.demo.example.role.RoleDOExample;
import cn.z2huo.demo.model.dataobject.role.RoleDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>该 Mapper 对应数据库表为 z2huo_role
 * <p>
 * 
 * @author z2huo
 * @date   2024-12-10
 */
@Mapper
public interface RoleMapper {

    long countByExample(RoleDOExample example);

    int deleteByExample(RoleDOExample example);

    int deleteByPrimaryKey(Long id);

    int insert(RoleDO row);

    int insertSelective(RoleDO row);

    List<RoleDO> selectByExample(RoleDOExample example);

    RoleDO selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("row") RoleDO row, @Param("example") RoleDOExample example);

    int updateByExample(@Param("row") RoleDO row, @Param("example") RoleDOExample example);

    int updateByPrimaryKeySelective(RoleDO row);

    int updateByPrimaryKey(RoleDO row);
}